home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Technotools
/
Technotools (Chestnut CD-ROM)(1993).ISO
/
lang_c
/
begincpp
/
#7_ver2.c
< prev
next >
Wrap
Text File
|
1990-08-03
|
2KB
|
70 lines
#line 1 "#7_ver2.cxx"
void *_new(long);
void _delete(void*);
void *_vec_new(void*,int,int,void*(*)(void*));
void _vec_delete(void*,int,int,void(*)(void*,int),...);
void exit(int);
static void cdecl _STI();
static void cdecl _STD();
void *malloc (unsigned int );
int free (void *);
struct tag_name {
int _tag_name_i ;
float _tag_name_f ;
} ;
struct class_one {
struct tag_name _class_one_t ;
} ;
struct class_two { char _dummy; } ;
struct class_two *_class_two__ctor (struct class_two* , unsigned int );
void _class_two__dtor (struct class_two* , int );
struct class_two *_class_two__ctor (register struct class_two *this ,
unsigned int _au0_size )
{
this = (((struct class_two *)malloc ( _au0_size ) ));
return this ;
}
void _class_two__dtor (register struct class_two *this , int _au0__free )
{
if (this ) {
free ( (void *)this ) ;
this = 0 ;
if (this )
if (_au0__free )
( _delete ( (void *)this ) , 0 ) ;
}
}
int main ()
{
{
struct class_one _au1_c1 ;
struct class_one _au1_cc1 ;
struct class_two _au1_c2 ;
( ( ( ((& _au1_c1 )-> _class_one_t . _tag_name_i = 1 ),
((& _au1_c1 )-> _class_one_t . _tag_name_f = ((float )1.1 ))) ,
(((& _au1_c1 )))) ) ;
( ( ( ((& _au1_cc1 )-> _class_one_t . _tag_name_i = ((int )0 )),
((& _au1_cc1 )-> _class_one_t . _tag_name_f = ((float )0 ))) ,
(((& _au1_cc1 )))) ) ;
_class_two__ctor ( & _au1_c2 , (unsigned int )(sizeof (struct class_two ))) ;
_au1_cc1 = (*( (& _au1_c1 )) );
_class_two__dtor ( & _au1_c2 , (int )0 ) ;
}
exit ( 0 );
}